package com.gof.example.flyweight;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/8 09:21.
 * haiming.fei@tongdun.cn
 */
public abstract class AbstractResource {

    private String sourceName;

    public AbstractResource(String sourceName) {
        this.sourceName = sourceName;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    abstract void insert(Area a, Position p);
}
